<?php

/*!
 * \file Soutenance.php
 * \namespace Site\SoutenanceBundle\Entity
 * \class Soutenance
 *
 * \author Antonin Barthélémy
 *
 * \brief Classe étant une entité et permettant de stocker une soutenance avec les 2 membres du jury et un rdv, lié à la classe RDV.
 */

namespace Site\SoutenanceBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Soutenance
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Soutenance
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @ORM\OneToOne(targetEntity="Site\GeneralBundle\Entity\RDV")
     * @ORM\JoinColumn(nullable=false)
     */
    private $rdv;

    /**
     * @var string
     *
     * @ORM\Column(name="jury", type="string", length=255)
     */
    private $jury;

    /**
     * @var string
     *
     * @ORM\Column(name="jure2", type="string", length=255)
     */
    private $jure2;


    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set jury
     *
     * @param string $jury
     * @return Soutenance
     */
    public function setJury($jury)
    {
        $this->jury = $jury;

        return $this;
    }

    /**
     * Get jury
     *
     * @return string
     */
    public function getJury()
    {
        return $this->jury;
    }

    /**
     * Set jure2
     *
     * @param string $jure2
     * @return Soutenance
     */
    public function setJure2($jure2)
    {
        $this->jure2 = $jure2;

        return $this;
    }

    /**
     * Get jure2
     *
     * @return string
     */
    public function getJure2()
    {
        return $this->jure2;
    }

    public function setRdv($rdv)
    {
        $this->rdv= $rdv;
    }

    public function getRdv()
    {
        return $this->rdv;
    }
}
